/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package br.com.proteu.hibernate.beans;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;

/**
 *
 * @author ricardo
 */
@Entity
@Table(name="BRASINDICECOMP")
public class BrasIndiceCompProteu implements Serializable{

    @Id
    @Column(name="BIP_IN_CODIGO")
    private Integer bipInCodigo;
    @Id
    @Column(name="UNI_IN_CODIGO")
    private Integer uniInCodigo;
    @Id
    @Column(name="CON_ST_CODIGO")
    private String conStCodigo;
    @Id
    @Column(name="BIP_ST_MED_COD_TISS")
    private String bipStMedCodTiss;
    @Id
    @Column(name="BIP_ST_COMPLEMENTO")
    private String bipStComplemento;
    
    @Column(name="CON_ST_PLA_CODIGO")
    private String conStPlaCodigo;
    @Column(name="BIP_ST_COD_EAN")
    private String bipStCodEan;
    @Column(name="BIP_ST_MED_DESCRICAO")
    private String bipStMedDescricao;
    @Column(name="BIP_CH_MED_GENERICO")
    private String bipChMedGenerico;
    @Column(name="BIP_ST_MED_GENERICO")
    private String bipStMedGenerico;
    @Column(name="UNM_ST_CODIGO")
    private String unmStCodigo;
    @Column(name="BIP_CH_PRECO_FAB")
    private String bipChPrecoFab;
    @Column(name="BIP_ST_COD_LAB")
    private String bipStCodLab;
    @Column(name="BIP_ST_COD_APR")
    private String bipStCodApr;
    @Column(name="BIP_ST_APRESENTACAO")
    private String bipStApresentacao;
    @Column(name="BIP_FL_FATOR_TRIBUTO")
    private Double bipFlFatorTributo;
    @Column(name="BIP_FL_PRECO_FABRICA")
    private Float bipFlPrecoFabrica;
    @Column(name="BIP_FL_DESCONTO")
    private Float bipFlDesconto;
    @Column(name="BIP_FL_QTD_MG")
    private Float bipFlQtdMG;
    @Column(name="BIP_FL_QTD_CAIXA")
    private Float bipFlQtdCaixa;
    @Column(name="BIP_FL_QTD_APRESENT")
    private Float bipFlQtdApresent;
    @Column(name="BIP_FL_QTD_TOTAL")
    private Float bipFlQtdTotal;
    @Column(name="BIP_FL_VLR_MEDICTO")
    private Float bipFlVlrMedicto;
    @Column(name="BIP_FL_VLR_MEDICTO_DESC")
    private Float bipFlVlrMedictoDesc;
    @Column(name="BIP_FL_VLR_MEDICTO_ACR")
    private Float bipFlVlrMedictoACR;
    @Column(name="BIP_IN_EDICAO")
    private Integer bipInEdicao;
    @Column(name="BIP_DT_EDICAO")
    @Temporal(javax.persistence.TemporalType.DATE)
    private Date bipDtEdicao;
    @Column(name="CLM_IN_CODIGO")
    private Integer clmInCodigo;
    @Column(name="BIP_CH_BLOQUEADO")
    private String bipChBloqueado;


    public String getBipChBloqueado() {
        return bipChBloqueado;
    }

    public void setBipChBloqueado(String bipChBloqueado) {
        this.bipChBloqueado = bipChBloqueado;
    }

    public String getBipChMedGenerico() {
        return bipChMedGenerico;
    }

    public void setBipChMedGenerico(String bipChMedGenerico) {
        this.bipChMedGenerico = bipChMedGenerico;
    }

    public String getBipChPrecoFab() {
        return bipChPrecoFab;
    }

    public void setBipChPrecoFab(String bipChPrecoFab) {
        this.bipChPrecoFab = bipChPrecoFab;
    }

    public Date getBipDtEdicao() {
        return bipDtEdicao;
    }

    public void setBipDtEdicao(Date bipDtEdicao) {
        this.bipDtEdicao = bipDtEdicao;
    }

    public Float getBipFlDesconto() {
        return bipFlDesconto;
    }

    public void setBipFlDesconto(Float bipFlDesconto) {
        this.bipFlDesconto = bipFlDesconto;
    }

    public Double getBipFlFatorTributo() {
        return bipFlFatorTributo;
    }

    public void setBipFlFatorTributo(Double bipFlFatorTributo) {
        this.bipFlFatorTributo = bipFlFatorTributo;
    }

    public Float getBipFlPrecoFabrica() {
        return bipFlPrecoFabrica;
    }

    public void setBipFlPrecoFabrica(Float bipFlPrecoFabrica) {
        this.bipFlPrecoFabrica = bipFlPrecoFabrica;
    }

    public Float getBipFlQtdApresent() {
        return bipFlQtdApresent;
    }

    public void setBipFlQtdApresent(Float bipFlQtdApresent) {
        this.bipFlQtdApresent = bipFlQtdApresent;
    }

    public Float getBipFlQtdCaixa() {
        return bipFlQtdCaixa;
    }

    public void setBipFlQtdCaixa(Float bipFlQtdCaixa) {
        this.bipFlQtdCaixa = bipFlQtdCaixa;
    }

    public Float getBipFlQtdMG() {
        return bipFlQtdMG;
    }

    public void setBipFlQtdMG(Float bipFlQtdMG) {
        this.bipFlQtdMG = bipFlQtdMG;
    }

    public Float getBipFlQtdTotal() {
        return bipFlQtdTotal;
    }

    public void setBipFlQtdTotal(Float bipFlQtdTotal) {
        this.bipFlQtdTotal = bipFlQtdTotal;
    }

    public Float getBipFlVlrMedicto() {
        return bipFlVlrMedicto;
    }

    public void setBipFlVlrMedicto(Float bipFlVlrMedicto) {
        this.bipFlVlrMedicto = bipFlVlrMedicto;
    }

    public Float getBipFlVlrMedictoACR() {
        return bipFlVlrMedictoACR;
    }

    public void setBipFlVlrMedictoACR(Float bipFlVlrMedictoACR) {
        this.bipFlVlrMedictoACR = bipFlVlrMedictoACR;
    }

    public Float getBipFlVlrMedictoDesc() {
        return bipFlVlrMedictoDesc;
    }

    public void setBipFlVlrMedictoDesc(Float bipFlVlrMedictoDesc) {
        this.bipFlVlrMedictoDesc = bipFlVlrMedictoDesc;
    }

    public Integer getBipInCodigo() {
        return bipInCodigo;
    }

    public void setBipInCodigo(Integer bipInCodigo) {
        this.bipInCodigo = bipInCodigo;
    }

    public Integer getBipInEdicao() {
        return bipInEdicao;
    }

    public void setBipInEdicao(Integer bipInEdicao) {
        this.bipInEdicao = bipInEdicao;
    }

    public String getBipStApresentacao() {
        return bipStApresentacao;
    }

    public void setBipStApresentacao(String bipStApresentacao) {
        this.bipStApresentacao = bipStApresentacao;
    }

    public String getBipStCodApr() {
        return bipStCodApr;
    }

    public void setBipStCodApr(String bipStCodApr) {
        this.bipStCodApr = bipStCodApr;
    }

    public String getBipStCodEan() {
        return bipStCodEan;
    }

    public void setBipStCodEan(String bipStCodEan) {
        this.bipStCodEan = bipStCodEan;
    }

    public String getBipStCodLab() {
        return bipStCodLab;
    }

    public void setBipStCodLab(String bipStCodLab) {
        this.bipStCodLab = bipStCodLab;
    }

    public String getBipStComplemento() {
        return bipStComplemento;
    }

    public void setBipStComplemento(String bipStComplemento) {
        this.bipStComplemento = bipStComplemento;
    }

    public String getBipStMedCodTiss() {
        return bipStMedCodTiss;
    }

    public void setBipStMedCodTiss(String bipStMedCodTiss) {
        this.bipStMedCodTiss = bipStMedCodTiss;
    }

    public String getBipStMedDescricao() {
        return bipStMedDescricao;
    }

    public void setBipStMedDescricao(String bipStMedDescricao) {
        this.bipStMedDescricao = bipStMedDescricao;
    }

    public String getBipStMedGenerico() {
        return bipStMedGenerico;
    }

    public void setBipStMedGenerico(String bipStMedGenerico) {
        this.bipStMedGenerico = bipStMedGenerico;
    }

    public Integer getClmInCodigo() {
        return clmInCodigo;
    }

    public void setClmInCodigo(Integer clmInCodigo) {
        this.clmInCodigo = clmInCodigo;
    }

    public String getConStCodigo() {
        return conStCodigo;
    }

    public void setConStCodigo(String conStCodigo) {
        this.conStCodigo = conStCodigo;
    }

    public String getConStPlaCodigo() {
        return conStPlaCodigo;
    }

    public void setConStPlaCodigo(String conStPlaCodigo) {
        this.conStPlaCodigo = conStPlaCodigo;
    }

    public Integer getUniInCodigo() {
        return uniInCodigo;
    }

    public void setUniInCodigo(Integer uniInCodigo) {
        this.uniInCodigo = uniInCodigo;
    }

    public String getUnmStCodigo() {
        return unmStCodigo;
    }

    public void setUnmStCodigo(String unmStCodigo) {
        this.unmStCodigo = unmStCodigo;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final BrasIndiceCompProteu other = (BrasIndiceCompProteu) obj;
        if (this.bipInCodigo != other.bipInCodigo && (this.bipInCodigo == null || !this.bipInCodigo.equals(other.bipInCodigo))) {
            return false;
        }
        if (this.uniInCodigo != other.uniInCodigo && (this.uniInCodigo == null || !this.uniInCodigo.equals(other.uniInCodigo))) {
            return false;
        }
        if ((this.conStCodigo == null) ? (other.conStCodigo != null) : !this.conStCodigo.equals(other.conStCodigo)) {
            return false;
        }
        if ((this.bipStMedCodTiss == null) ? (other.bipStMedCodTiss != null) : !this.bipStMedCodTiss.equals(other.bipStMedCodTiss)) {
            return false;
        }
        if ((this.bipStComplemento == null) ? (other.bipStComplemento != null) : !this.bipStComplemento.equals(other.bipStComplemento)) {
            return false;
        }
        return true;
    }

    @Override
    public int hashCode() {
        int hash = 7;
        hash = 97 * hash + (this.bipInCodigo != null ? this.bipInCodigo.hashCode() : 0);
        hash = 97 * hash + (this.uniInCodigo != null ? this.uniInCodigo.hashCode() : 0);
        hash = 97 * hash + (this.conStCodigo != null ? this.conStCodigo.hashCode() : 0);
        hash = 97 * hash + (this.bipStMedCodTiss != null ? this.bipStMedCodTiss.hashCode() : 0);
        hash = 97 * hash + (this.bipStComplemento != null ? this.bipStComplemento.hashCode() : 0);
        return hash;
    }



}
